# Contributor: Erwan Rouchet <lucidiot@brainshit.fr>
# Maintainer: Erwan Rouchet <lucidiot@brainshit.fr>
pkgname=epr
pkgver=2.4.15
pkgrel=0
pkgdesc="CLI epub reader"
url="https://github.com/wustho/epr"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-installer py3-poetry-core"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wustho/epr/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/epr*.whl
}

sha512sums="
c1642191889ef3aebcc3b516281387a28edb39f6898bde68f9717b9eccf4c72bf567714a65b56d67f126139b04c8fc1921f0e69bf35effb85d8a3d7e1fd71fdf  epr-2.4.15.tar.gz
"
